$(document).ready(function(){
//$("#parentName").attr('disabled', 'disabled');

$('#newContactForm').submit(function(){
	var phoneIsNum = $('#phone').isNumber({errorClass: ".numberError"});
	var mobileIsNum = $('#mobile').isNumber({errorClass: ".numberError"});
	//alert('xor ' + (phoneIsNum  || mobileIsNum));
	//alert('xand ' + (phoneIsNum  && mobileIsNum));
	if((phoneIsNum && mobileIsNum) == false){
		//alert('false');
        $('.numberError').css('display', 'block');
		return false;
	}
	else if((phoneIsNum && mobileIsNum) == true){
		//alert('true');
        $('.numberError').css('display', 'none');
		return true;
	}
});


});